package com.yuanli.cosmeticmirror.bean;

import android.os.Parcel;
import android.os.Parcelable;

public class RingBean implements Parcelable {

    /**
     * wno=1086400824344576000, wurl=https://oss.kuyinyun.com/11W2MYCO/rescloud1/271cdb634b314db29808f2d88f76b640.aac, wname=狂浪(光音坊音乐DJ REMIX1)
     */
    private String wno;
    private String wurl;
    private String wname;

    /**
     * {"pid":"#progpage","pname":"栏目"}
     */
    private String pid;
    private String pname;


    public RingBean() {
    }

    public RingBean(String pid, String pname) {
        this.pid = pid;
        this.pname = pname;
    }

    public RingBean(String wno, String wurl, String wname) {
        this.wno = wno;
        this.wurl = wurl;
        this.wname = wname;
    }


    protected RingBean(Parcel in) {
        wno = in.readString();
        wurl = in.readString();
        wname = in.readString();
        pid = in.readString();
        pname = in.readString();
    }

    public static final Creator<RingBean> CREATOR = new Creator<RingBean>() {
        @Override
        public RingBean createFromParcel(Parcel in) {
            return new RingBean(in);
        }

        @Override
        public RingBean[] newArray(int size) {
            return new RingBean[size];
        }
    };

    public String getPid() {
        return pid;
    }

    public void setPid(String pid) {
        this.pid = pid;
    }

    public String getPname() {
        return pname;
    }

    public void setPname(String pname) {
        this.pname = pname;
    }

    public String getWno() {
        return wno;
    }

    public void setWno(String wno) {
        this.wno = wno;
    }

    public String getWurl() {
        return wurl;
    }

    public void setWurl(String wurl) {
        this.wurl = wurl;
    }

    public String getWname() {
        return wname;
    }

    public void setWname(String wname) {
        this.wname = wname;
    }

    @Override
    public String toString() {
        return "RingBean{" +
                "wno='" + wno + '\'' +
                ", wurl='" + wurl + '\'' +
                ", wname='" + wname + '\'' +
                ", pid='" + pid + '\'' +
                ", pname='" + pname + '\'' +
                '}';
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(wno);
        dest.writeString(wurl);
        dest.writeString(wname);
        dest.writeString(pid);
        dest.writeString(pname);
    }
}
